package com.cxc.distributed.demo;

/**
 *
 *
 */
public class Test {

    public static void main(String[] args) {
        LockService lockService = new LockService();
        for (int i = 0; i < 50; i++) {
            new ThreadRedis(lockService).start();
        }
    }

}
    class  ThreadRedis extends Thread{

        private LockService lockService;
        public ThreadRedis(LockService lockService) {
            this.lockService = lockService;
        }
        @Override
        public void run() {
            lockService.excuteLock();
        }

    }